package com.smart.nine.spel.summary;

/**
 * user
 *
 * @author junrui.wang
 * @create 2019/3/19
 */
public class User {
    private String name;
    private int credits;

    public User() {
    }

    public User(String name, int credits) {
        this.name = name;
        this.credits = credits;
    }

    public int getCredits() {
        return credits;
    }

    public void setCredits(int credits) {
        this.credits = credits;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isVipMember(String name) {
        if (name.equalsIgnoreCase("Tom") || name.equalsIgnoreCase("John")){
            return true;
        }
        return false;
    }
}
